$OpenBSD: patch-src_Makefile,v 1.5 2014/04/14 01:20:10 jturner Exp $
--- src/Makefile.orig	Wed Jan 29 15:43:33 2014
+++ src/Makefile	Sun Apr 13 21:13:13 2014
@@ -10,8 +10,8 @@ LIBS=-lssl -lcrypto -lluasocket
 
 WARN=-Wall -pedantic
 
-BSD_CFLAGS=-O2 -fPIC $(WARN) $(INCDIR) $(DEFS)
-BSD_LDFLAGS=-O -fPIC -shared $(LIBDIR)
+BSD_CFLAGS=$(SAVECFLAGS) -fPIC $(WARN) $(INCDIR) $(DEFS)
+BSD_LDFLAGS=-fPIC -shared $(LIBDIR)
 
 LNX_CFLAGS=-O2 -fPIC $(WARN) $(INCDIR) $(DEFS)
 LNX_LDFLAGS=-O -fPIC -shared $(LIBDIR)
